{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3e9df661",
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import *\n",
    "from pyecharts.globals import ThemeType"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "7727de1d",
   "metadata": {},
   "outputs": [],
   "source": [
    "nodes = [\n",
    "    {\"name\": \"经济负担\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"长期病痛\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"学业受阻\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"性格抑郁\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"校园霸凌\", \"symbolSize\": 100,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"自杀倾向\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"社交障碍\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"终生残疾\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "    {\"name\": \"生活质量下降\", \"symbolSize\": 70,\"itemStyle\": {\"color\": \"#b51416\"}},\n",
    "]\n",
    "links=[]\n",
    "for i in nodes:\n",
    "    for j in nodes:\n",
    "        links.append({\"source\": i.get(\"name\"), \"target\": j.get(\"name\")})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "587ed435",
   "metadata": {},
   "outputs": [],
   "source": [
    "c = (\n",
    "    Graph(init_opts=opts.InitOpts(theme=ThemeType.DARK))\n",
    "    .add(\"\",nodes,links,repulsion=20000,linestyle_opts=opts.LineStyleOpts(width=2))\n",
    "    .set_global_opts(title_opts=opts.TitleOpts(title=\"校园霸凌所带来的后果\",pos_left=\"center\",title_textstyle_opts=opts.TextStyleOpts(font_size=35)))\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "37468d98",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/v5/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"61eb852fdb3441c7bed3bb6330cff193\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_61eb852fdb3441c7bed3bb6330cff193 = echarts.init(\n",
       "                    document.getElementById('61eb852fdb3441c7bed3bb6330cff193'), 'dark', {renderer: 'canvas'});\n",
       "                var option_61eb852fdb3441c7bed3bb6330cff193 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"aria\": {\n",
       "        \"enabled\": false\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"graph\",\n",
       "            \"layout\": \"force\",\n",
       "            \"symbolSize\": 10,\n",
       "            \"circular\": {\n",
       "                \"rotateLabel\": false\n",
       "            },\n",
       "            \"force\": {\n",
       "                \"repulsion\": 20000,\n",
       "                \"gravity\": 0.2,\n",
       "                \"edgeLength\": 30,\n",
       "                \"friction\": 0.6,\n",
       "                \"layoutAnimation\": true\n",
       "            },\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 2,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\"\n",
       "            },\n",
       "            \"roam\": true,\n",
       "            \"draggable\": false,\n",
       "            \"focusNodeAdjacency\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"symbolSize\": 100,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"symbolSize\": 70,\n",
       "                    \"itemStyle\": {\n",
       "                        \"color\": \"#b51416\"\n",
       "                    }\n",
       "                }\n",
       "            ],\n",
       "            \"edgeLabel\": {\n",
       "                \"show\": false,\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"edgeSymbol\": [\n",
       "                null,\n",
       "                null\n",
       "            ],\n",
       "            \"edgeSymbolSize\": 10,\n",
       "            \"links\": [\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u957f\\u671f\\u75c5\\u75db\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u5b66\\u4e1a\\u53d7\\u963b\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6027\\u683c\\u6291\\u90c1\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u6821\\u56ed\\u9738\\u51cc\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u81ea\\u6740\\u503e\\u5411\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u793e\\u4ea4\\u969c\\u788d\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u7ec8\\u751f\\u6b8b\\u75be\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u7ecf\\u6d4e\\u8d1f\\u62c5\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u957f\\u671f\\u75c5\\u75db\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u5b66\\u4e1a\\u53d7\\u963b\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u6027\\u683c\\u6291\\u90c1\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u6821\\u56ed\\u9738\\u51cc\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u81ea\\u6740\\u503e\\u5411\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u793e\\u4ea4\\u969c\\u788d\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u7ec8\\u751f\\u6b8b\\u75be\"\n",
       "                },\n",
       "                {\n",
       "                    \"source\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\",\n",
       "                    \"target\": \"\\u751f\\u6d3b\\u8d28\\u91cf\\u4e0b\\u964d\"\n",
       "                }\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [],\n",
       "            \"selected\": {},\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14,\n",
       "            \"backgroundColor\": \"transparent\",\n",
       "            \"borderColor\": \"#ccc\",\n",
       "            \"borderRadius\": 0,\n",
       "            \"pageButtonItemGap\": 5,\n",
       "            \"pageButtonPosition\": \"end\",\n",
       "            \"pageFormatter\": \"{current}/{total}\",\n",
       "            \"pageIconColor\": \"#2f4554\",\n",
       "            \"pageIconInactiveColor\": \"#aaa\",\n",
       "            \"pageIconSize\": 15,\n",
       "            \"animationDurationUpdate\": 800,\n",
       "            \"selector\": false,\n",
       "            \"selectorPosition\": \"auto\",\n",
       "            \"selectorItemGap\": 7,\n",
       "            \"selectorButtonGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"enterable\": false,\n",
       "        \"confine\": false,\n",
       "        \"appendToBody\": false,\n",
       "        \"transitionDuration\": 0.4,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5,\n",
       "        \"order\": \"seriesAsc\"\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"text\": \"\\u6821\\u56ed\\u9738\\u51cc\\u6240\\u5e26\\u6765\\u7684\\u540e\\u679c\",\n",
       "            \"target\": \"blank\",\n",
       "            \"subtarget\": \"blank\",\n",
       "            \"left\": \"center\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"textAlign\": \"auto\",\n",
       "            \"textVerticalAlign\": \"auto\",\n",
       "            \"triggerEvent\": false,\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 35\n",
       "            }\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_61eb852fdb3441c7bed3bb6330cff193.setOption(option_61eb852fdb3441c7bed3bb6330cff193);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2ac52b33e80>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "9b069b61",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'C:\\\\Users\\\\hcc\\\\Python高级应用\\\\pyecharts\\\\校园霸凌后果分类图谱.html'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "page = (\n",
    "    Page(layout=Page.DraggablePageLayout)\n",
    "    .add(c)\n",
    ")\n",
    "page.render('校园霸凌后果分类图谱.html')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "7c470e0b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'<!DOCTYPE html>\\n<html>\\n<head>\\n    <meta charset=\"UTF-8\">\\n    <title>Awesome-pyecharts</title>\\n                <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/v5/echarts.min.js\"></script>\\n            <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/v5/jquery.min.js\"></script>\\n            <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/v5/jquery-ui.min.js\"></script>\\n            <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/v5/ResizeSensor.js\"></script>\\n\\n            <link rel=\"stylesheet\"  href=\"https://assets.pyecharts.org/assets/v5/jquery-ui.css\">\\n\\n</head>\\n<body >\\n    <style>.box {  } </style>\\n        \\n    <div class=\"box\">\\n                <div id=\"61eb852fdb3441c7bed3bb6330cff193\" class=\"chart-container\" style=\"position: absolute; width: 1437.666666px; height: 746.666666px; top: 20px; left: -3px;\"></div>\\n    <script>\\n        var chart_61eb852fdb3441c7bed3bb6330cff193 = echarts.init(\\n            document.getElementById(\\'61eb852fdb3441c7bed3bb6330cff193\\'), \\'dark\\', {renderer: \\'canvas\\'});\\n        var option_61eb852fdb3441c7bed3bb6330cff193 = {\\n    \"animation\": true,\\n    \"animationThreshold\": 2000,\\n    \"animationDuration\": 1000,\\n    \"animationEasing\": \"cubicOut\",\\n    \"animationDelay\": 0,\\n    \"animationDurationUpdate\": 300,\\n    \"animationEasingUpdate\": \"cubicOut\",\\n    \"animationDelayUpdate\": 0,\\n    \"aria\": {\\n        \"enabled\": false\\n    },\\n    \"series\": [\\n        {\\n            \"type\": \"graph\",\\n            \"layout\": \"force\",\\n            \"symbolSize\": 10,\\n            \"circular\": {\\n                \"rotateLabel\": false\\n            },\\n            \"force\": {\\n                \"repulsion\": 20000,\\n                \"gravity\": 0.2,\\n                \"edgeLength\": 30,\\n                \"friction\": 0.6,\\n                \"layoutAnimation\": true\\n            },\\n            \"label\": {\\n                \"show\": true,\\n                \"margin\": 8\\n            },\\n            \"lineStyle\": {\\n                \"show\": true,\\n                \"width\": 2,\\n                \"opacity\": 1,\\n                \"curveness\": 0,\\n                \"type\": \"solid\"\\n            },\\n            \"roam\": true,\\n            \"draggable\": false,\\n            \"focusNodeAdjacency\": true,\\n            \"data\": [\\n                {\\n                    \"name\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"symbolSize\": 100,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                },\\n                {\\n                    \"name\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"symbolSize\": 70,\\n                    \"itemStyle\": {\\n                        \"color\": \"#b51416\"\\n                    }\\n                }\\n            ],\\n            \"edgeLabel\": {\\n                \"show\": false,\\n                \"margin\": 8\\n            },\\n            \"edgeSymbol\": [\\n                null,\\n                null\\n            ],\\n            \"edgeSymbolSize\": 10,\\n            \"links\": [\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u7ecf\\\\u6d4e\\\\u8d1f\\\\u62c5\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u957f\\\\u671f\\\\u75c5\\\\u75db\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u5b66\\\\u4e1a\\\\u53d7\\\\u963b\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u6027\\\\u683c\\\\u6291\\\\u90c1\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u81ea\\\\u6740\\\\u503e\\\\u5411\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u793e\\\\u4ea4\\\\u969c\\\\u788d\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u7ec8\\\\u751f\\\\u6b8b\\\\u75be\"\\n                },\\n                {\\n                    \"source\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\",\\n                    \"target\": \"\\\\u751f\\\\u6d3b\\\\u8d28\\\\u91cf\\\\u4e0b\\\\u964d\"\\n                }\\n            ]\\n        }\\n    ],\\n    \"legend\": [\\n        {\\n            \"data\": [],\\n            \"selected\": {},\\n            \"show\": true,\\n            \"padding\": 5,\\n            \"itemGap\": 10,\\n            \"itemWidth\": 25,\\n            \"itemHeight\": 14,\\n            \"backgroundColor\": \"transparent\",\\n            \"borderColor\": \"#ccc\",\\n            \"borderRadius\": 0,\\n            \"pageButtonItemGap\": 5,\\n            \"pageButtonPosition\": \"end\",\\n            \"pageFormatter\": \"{current}/{total}\",\\n            \"pageIconColor\": \"#2f4554\",\\n            \"pageIconInactiveColor\": \"#aaa\",\\n            \"pageIconSize\": 15,\\n            \"animationDurationUpdate\": 800,\\n            \"selector\": false,\\n            \"selectorPosition\": \"auto\",\\n            \"selectorItemGap\": 7,\\n            \"selectorButtonGap\": 10\\n        }\\n    ],\\n    \"tooltip\": {\\n        \"show\": true,\\n        \"trigger\": \"item\",\\n        \"triggerOn\": \"mousemove|click\",\\n        \"axisPointer\": {\\n            \"type\": \"line\"\\n        },\\n        \"showContent\": true,\\n        \"alwaysShowContent\": false,\\n        \"showDelay\": 0,\\n        \"hideDelay\": 100,\\n        \"enterable\": false,\\n        \"confine\": false,\\n        \"appendToBody\": false,\\n        \"transitionDuration\": 0.4,\\n        \"textStyle\": {\\n            \"fontSize\": 14\\n        },\\n        \"borderWidth\": 0,\\n        \"padding\": 5,\\n        \"order\": \"seriesAsc\"\\n    },\\n    \"title\": [\\n        {\\n            \"show\": true,\\n            \"text\": \"\\\\u6821\\\\u56ed\\\\u9738\\\\u51cc\\\\u6240\\\\u5e26\\\\u6765\\\\u7684\\\\u540e\\\\u679c\",\\n            \"target\": \"blank\",\\n            \"subtarget\": \"blank\",\\n            \"left\": \"center\",\\n            \"padding\": 5,\\n            \"itemGap\": 10,\\n            \"textAlign\": \"auto\",\\n            \"textVerticalAlign\": \"auto\",\\n            \"triggerEvent\": false,\\n            \"textStyle\": {\\n                \"fontSize\": 35\\n            }\\n        }\\n    ]\\n};\\n        chart_61eb852fdb3441c7bed3bb6330cff193.setOption(option_61eb852fdb3441c7bed3bb6330cff193);\\n    </script>\\n<br/>    </div>\\n    <script>\\n            $(\\'#61eb852fdb3441c7bed3bb6330cff193\\').css(\\'border-style\\', \\'dashed\\').css(\\'border-width\\', \\'0px\\');$(\"#61eb852fdb3441c7bed3bb6330cff193>div:nth-child(1)\").width(\"100%\").height(\"100%\");\\n            new ResizeSensor(jQuery(\\'#61eb852fdb3441c7bed3bb6330cff193\\'), function() { chart_61eb852fdb3441c7bed3bb6330cff193.resize()});\\n            var charts_id = [\\'61eb852fdb3441c7bed3bb6330cff193\\'];\\nfunction downloadCfg () {\\n    const fileName = \\'chart_config.json\\'\\n    let downLink = document.createElement(\\'a\\')\\n    downLink.download = fileName\\n\\n    let result = []\\n    for(let i=0; i<charts_id.length; i++) {\\n        chart = $(\\'#\\'+charts_id[i])\\n        result.push({\\n            cid: charts_id[i],\\n            width: chart.css(\"width\"),\\n            height: chart.css(\"height\"),\\n            top: chart.offset().top + \"px\",\\n            left: chart.offset().left + \"px\"\\n        })\\n    }\\n\\n    let blob = new Blob([JSON.stringify(result)])\\n    downLink.href = URL.createObjectURL(blob)\\n    document.body.appendChild(downLink)\\n    downLink.click()\\n    document.body.removeChild(downLink)\\n}\\n    </script>\\n</body>\\n</html>\\n'"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "page.save_resize_html(source='校园霸凌后果分类图谱.html',\n",
    "                      cfg_file='chart_config_head.json',\n",
    "                      dest='最终版校园霸凌后果分类图谱.html'\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "eaac1a74",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
